
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'
import { adminRoutes, mainRoutes } from './index'
import Frame from '../compontents/Frame/Index'
import Login from '../pages/Login'
function Config() {
  return (document.location.pathname.substring(0, 6) == '/admin' ?
    // <Provider store={store}>
    //   <div>
    //     <ComA />
    //     <ComB />
    //   </div>
    // </Provider>
    <Router>
      <Frame >
      </Frame>
    </Router>
    :
    <Router>
      <Routes>
        <Route path="/" element={<Navigate to="/login" />} />
        <Route path="/login" element={<Login />} />
      </Routes>
    </Router>
  );
}

export default Config;
